import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginFrameComponent } from './login-frame/login-frame.component';
import { BankAccountComponent } from './bank-account/bank-account.component';
import { RecipyPageComponent } from './recipy-page/recipy-page.component';
import { TransactionLaunchComponent  } from './transaction-launch/transaction-launch.component';
import { MessageCenterComponent } from './message-center/message-center.component';
const routes: Routes = [
  {
    path: '',
    pathMatch: 'full',
    redirectTo: 'login'
  },
  {
    path: 'login',
    component: LoginFrameComponent
  },
  {
    path: 'bank-account',
    component: BankAccountComponent
  },
  {
    path: 'recipy-page',
    component: RecipyPageComponent
  },
  {
    path: 'transaction-launch',
    component: TransactionLaunchComponent
  },
  {
    path: 'message-center',
    component: MessageCenterComponent
  },
  {
    path: '**',
    redirectTo: ''
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
